package com.citic.netty.common.protocol.request;

import com.citic.netty.common.protocol.Command;
import com.citic.netty.common.protocol.Packet;

public class MessageRequestPacket extends Packet{

	private static final long serialVersionUID = 1L;

	private String message;
	private String toUserId;	// 要发送给哪个用户
	
	public MessageRequestPacket() {}
	
	public MessageRequestPacket(String toUserId, String message) {
        this.toUserId = toUserId;
        this.message = message;
    }
	
	public MessageRequestPacket(String message) {
        this.message = message;
    }
	
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getToUserId() {
		return toUserId;
	}

	public void setToUserId(String toUserId) {
		this.toUserId = toUserId;
	}

	@Override
	public Byte getCommand() {
		return Command.MESSAGE_REQUEST;
	}
}
